import request from "@/apis/request";

export const findFixtureLedgers = async (searchForm, currentPage, pageSize) => {
    console.log(1,searchForm)
    return await request.get('/api/fixtureLedger/find', {
        params: {
            fixtureCode: searchForm.fixtureCode,
            fixtureName: searchForm.fixtureName,
            typeCode: searchForm.typeCode,
            brand: searchForm.brand,
            model: searchForm.model,
            status: searchForm.status,
            currentPage: currentPage,
            pageSize: pageSize
        },
    })
}
export const findFixtureLedgerById = async (id) => {
    return await request.get('/api/fixtureLedger/findById', {
        params: {
            id: id
        }
    })
}
export const addFixtureLedger = async (form) => {
    return await request.post('/api/fixtureLedger/insert', form)
}
export const updateFixtureLedger = async (form) => {
    return await request.put('/api/fixtureLedger/update', form)
}
export const deleteFixtureLedger = async (id) => {
    return await request.delete('/api/fixtureLedger/delete', {data: id})
}